/**
 * Copyright (c) 2016-2019 九点科技 All rights reserved.
 *
 * http://www.9dyun.cn
 *
 * 版权所有，侵权必究！
 */
package com.dian.api.inv.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.easyopen.doc.annotation.ApiDocField;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 入库单
 *
 * @author xiaolai
 * @email xiaolai@9dyun.cn
 * @date 2019-06-11 00:12:45
 */
@Data
@TableName("inv_in_head")
public class InHeadParam  {
	private static final long serialVersionUID = 1L;
    /**
	 * 仓库编码;来源于Base_Warehouse.Warehouse_Code
	 */
    @ApiDocField(description = "仓库编码")
    @NotBlank(message="仓库编码不能为空")
    @Length(max=20,   message="仓库编码长度不能超过20个字符")
    private String warehouseCode;
    /**
	 * 仓库名称;来源于Base_Warehouse.Warehouse_Name
	 */
    @ApiDocField(description = "仓库名称")
    @NotBlank(message="仓库名称不能为空")
    @Length(max=40, message="仓库名称长度不能超过40个字符")
    private String warehouseName;

    /**
     * 入库单明细
     */
    @TableField(exist = false)
    private List<InLineParam> inLineEntityList;
}
